package com.missilike.biz.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.missilike.biz.IMilRecommendRegisterService;
import com.missilike.domain.mapper.MilRecommendInfoMapper;
import com.missilike.domain.response.MilRecommendInfo;
import com.missilike.repository.entity.MilRecommendRegister;
import com.missilike.repository.mapper.MilRecommendRegisterMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author pengpengli
 * @since 2018-12-19
 */
@Service
public class MilRecommendRegisterServiceImpl extends ServiceImpl<MilRecommendRegisterMapper, MilRecommendRegister> implements IMilRecommendRegisterService {

    @Override
    public IPage<MilRecommendInfo> getList(Page<MilRecommendInfo> page, String applyAccount, String recommendAccount) {
        List<MilRecommendInfo> milRecommendInfoList = baseMapper.selectRecommendInfo(page, applyAccount, recommendAccount);
        page.setRecords(milRecommendInfoList);
        return page;
    }
}
